﻿using System;
using System.Data;
using System.Collections.Generic;

namespace SEAM.Data
{
    /// <summary>
    /// Provides a way for objects to be bound to results from database 
    /// commands automatically.
    /// </summary>
    public interface IBindable
    {
        /// <summary>
        /// When implemented by a class, sets the appropriate properites
        /// using IDictionary provided.
        /// </summary>
        /// <param name="record">
        /// IDictionary that represents objects that are available to be
        /// bound.
        /// </param>
        void Bind(IDictionary<string, object> record);
    }
}
